package com.ewanghuiju.app.ui.pintuan.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ewanghuiju.app.R;
import com.ewanghuiju.app.component.ImageLoader;
import com.ewanghuiju.app.test.bean.PintuanEjClassifyRightBean;

import androidx.recyclerview.widget.RecyclerView;

public class PintuanEjClassifyRightAdapter extends BaseQuickAdapter<PintuanEjClassifyRightBean,BaseViewHolder> {
    public  PintuanEjClassifyRightAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, PintuanEjClassifyRightBean item) {
        helper.setText(R.id.tv_title,item.getName());
        ImageView iv = helper.getView(R.id.iv_classify);
        ImageLoader.load(mContext,item.getImage(),iv);
//        Glide.with(mContext).load(item.getImage()).into(iv);
    }
}
